import request from '@/utils/request'

// 查询单子列表
export function listImgOrder(query) {
  return request({
    url: '/tcod/imgOrder/list',
    method: 'get',
    params: query
  })
}

// 查询单子详细
export function getImgOrder(id) {
  return request({
    url: '/tcod/imgOrder/' + id,
    method: 'get'
  })
}

// 新增单子
export function addImgOrder(data) {
  return request({
    url: '/tcod/imgOrder',
    method: 'post',
    data: data
  })
}

// 修改单子
export function updateImgOrder(data) {
  return request({
    url: '/tcod/imgOrder',
    method: 'put',
    data: data
  })
}

// 删除单子
export function delImgOrder(id) {
  return request({
    url: '/tcod/imgOrder/' + id,
    method: 'delete'
  })
}

// 审核单子
export function approveOrder(data) {
  return request({
    url: '/tcod/imgOrder/approve',
    data:data,
    method: 'post'
  })
}
